/// YApi QuickType插件生成，具体参考文档:https://plugins.jetbrains.com/plugin/18847-yapi-quicktype/documentation

import 'dart:convert';

IntellTimeLine intellTimeLineFromJson(String str) => IntellTimeLine.fromJson(json.decode(str));

String intellTimeLineToJson(IntellTimeLine data) => json.encode(data.toJson());

class IntellTimeLine {
    IntellTimeLine({
        required this.annexList,
        required this.qingbaoId,
        required this.updateTime,
        required this.lon,
        required this.content,
        required this.createBy,
        required this.createTime,
        required this.idcard,
        required this.id,
        required this.isDel,
        required this.lat,
        required this.createTimeStr,
    });

    List<AnnexList> annexList;
    String qingbaoId;
    int updateTime;
    String lon;
    String content;
    String createBy;
    int createTime;
    String idcard;
    String id;
    int isDel;
    String lat;
    DateTime createTimeStr;

    factory IntellTimeLine.fromJson(Map<dynamic, dynamic> json) => IntellTimeLine(
        annexList: List<AnnexList>.from(json["annexList"].map((x) => AnnexList.fromJson(x))),
        qingbaoId: json["qingbaoId"],
        updateTime: json["updateTime"],
        lon: json["lon"],
        content: json["content"],
        createBy: json["createBy"],
        createTime: json["createTime"],
        idcard: json["idcard"],
        id: json["id"],
        isDel: json["isDel"],
        lat: json["lat"],
        createTimeStr: DateTime.parse(json["createTimeStr"]),
    );

    Map<dynamic, dynamic> toJson() => {
        "annexList": List<dynamic>.from(annexList.map((x) => x.toJson())),
        "qingbaoId": qingbaoId,
        "updateTime": updateTime,
        "lon": lon,
        "content": content,
        "createBy": createBy,
        "createTime": createTime,
        "idcard": idcard,
        "id": id,
        "isDel": isDel,
        "lat": lat,
        "createTimeStr": createTimeStr.toIso8601String(),
    };
}

class AnnexList {
    AnnexList({
        required this.consultId,
        required this.path,
        required this.createBy,
        required this.createTime,
        required this.name,
        required this.updateTime,
        required this.id,
        required this.type,
        required this.isDel,
         this.coverImg,
    });

    String consultId;
    String path;
    String createBy;
    int createTime;
    String name;
    int updateTime;
    String id;
    int type;
    int isDel;
    String? coverImg;

    factory AnnexList.fromJson(Map<dynamic, dynamic> json) => AnnexList(
        consultId: json["consultId"],
        path: json["path"],
        createBy: json["createBy"],
        createTime: json["createTime"],
        name: json["name"],
        updateTime: json["updateTime"],
        id: json["id"],
        type: json["type"],
        isDel: json["isDel"],
        coverImg: json["coverImg"],
    );

    Map<dynamic, dynamic> toJson() => {
        "consultId": consultId,
        "path": path,
        "createBy": createBy,
        "createTime": createTime,
        "name": name,
        "updateTime": updateTime,
        "id": id,
        "type": type,
        "isDel": isDel,
        "coverImg": coverImg,
    };
}
